package com.zhejiangzhengyuan.municipal_common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhejiangzhengyuan.municipal_common.entity.PumpStation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author linju
 * @since 2019-12-14
 */
@Repository
public interface PumpStationMapper extends BaseMapper<PumpStation> {

    String getPumpDeviceId(@Param("code")String code,@Param("name") String name);

    Integer getDeviceBreakdownCount(@Param("code")String code,@Param("startTime")String startTime,@Param("endTime")String endTime);

    Integer GetWarnId(@Param("code") String code);

    Integer getDeviceAnalyzeCount(@Param("code")String code,@Param("startTime")String startTime,@Param("endTime")String endTime);
}
